/*
 * Copyright (c) 2006, 2023, webrx.cn All rights reserved.
 *
 */
package cn.webrx;

import java.util.Arrays;
import java.util.Date;

/**
 * <p>Project: jse2302 - Arr6
 * <p>Powered by webrx On 2023-06-14 14:28:12
 * <p>Created by IntelliJ IDEA
 *
 * @author  webrx [webrx@126.com]
 * @version 1.0
 * @since 17
 */
public class Arr6 {
    public static void main(String[] args) {
        Object[] ss = {new int[3], 1, .5, "a", new Date(), new Student()};
        System.out.println(ss.length);

        int[] n1 = {10, 20, 30};
        int[][] n2 = new int[2][3]; //
        String[][][] s3 = {
                {
                        {"java"},
                        {"javascript"}
                },
                {{"c", "c++"}, {"php"}, {"go"}},
                {{"html", "css", "ts"}}
        };

        System.out.println(s3[0][1][0]);
        System.out.println(s3[1][0][1]);
        // 0 0 1 2
        // 1 0 1 2
        int[][] n3 = {{1, 2, 3}, {10, 20, 30}, {100, 200, 300, 400, 500}};
        System.out.println(Arrays.toString(n3));

        //System.out.println(n3[2][4]);
        System.out.println(Arrays.deepToString(n3));

        for (int[] arr : n3) {
            //System.out.println(Arrays.toString(arr));
            for (int i : arr) {
                System.out.print(i + " ");
            }
            System.out.println();
        }
    }
}
